<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GeneticAlgorithm (Apache Commons Math 3.6.1 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="GeneticAlgorithm (Apache Commons Math 3.6.1 API)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/GeneticAlgorithm.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/commons/math3/genetics/FixedGenerationCount.html" title="class in org.apache.commons.math3.genetics"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/commons/math3/genetics/InvalidRepresentationException.html" title="class in org.apache.commons.math3.genetics"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/commons/math3/genetics/GeneticAlgorithm.html" target="_top">Frames</a></li>
<li><a href="GeneticAlgorithm.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.commons.math3.genetics</div>
<h2 title="Class GeneticAlgorithm" class="title">Class GeneticAlgorithm</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.commons.math3.genetics.GeneticAlgorithm</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="strong">GeneticAlgorithm</span>
extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block">Implementation of a genetic algorithm. All factors that govern the operation
 of the algorithm can be configured for a specific problem.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>2.0</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/math3/genetics/GeneticAlgorithm.html#GeneticAlgorithm(org.apache.commons.math3.genetics.CrossoverPolicy,%20double,%20org.apache.commons.math3.genetics.MutationPolicy,%20double,%20org.apache.commons.math3.genetics.SelectionPolicy)">GeneticAlgorithm</a></strong>(<a href="../../../../../org/apache/commons/math3/genetics/CrossoverPolicy.html" title="interface in org.apache.commons.math3.genetics">CrossoverPolicy</a>&nbsp;crossoverPolicy,
                double&nbsp;crossoverRate,
                <a href="../../../../../org/apache/commons/math3/genetics/MutationPolicy.html" title="interface in org.apache.commons.math3.genetics">MutationPolicy</a>&nbsp;mutationPolicy,
                double&nbsp;mutationRate,
                <a href="../../../../../org/apache/commons/math3/genetics/SelectionPolicy.html" title="interface in org.apache.commons.math3.genetics">SelectionPolicy</a>&nbsp;selectionPolicy)</code>
<div class="block">Create a new genetic algorithm.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/genetics/Population.html" title="interface in org.apache.commons.math3.genetics">Population</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/genetics/GeneticAlgorithm.html#evolve(org.apache.commons.math3.genetics.Population,%20org.apache.commons.math3.genetics.StoppingCondition)">evolve</a></strong>(<a href="../../../../../org/apache/commons/math3/genetics/Population.html" title="interface in org.apache.commons.math3.genetics">Population</a>&nbsp;initial,
      <a href="../../../../../org/apache/commons/math3/genetics/StoppingCondition.html" title="interface in org.apache.commons.math3.genetics">StoppingCondition</a>&nbsp;condition)</code>
<div class="block">Evolve the given population.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/genetics/CrossoverPolicy.html" title="interface in org.apache.commons.math3.genetics">CrossoverPolicy</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/genetics/GeneticAlgorithm.html#getCrossoverPolicy()">getCrossoverPolicy</a></strong>()</code>
<div class="block">Returns the crossover policy.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/genetics/GeneticAlgorithm.html#getCrossoverRate()">getCrossoverRate</a></strong>()</code>
<div class="block">Returns the crossover rate.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/genetics/GeneticAlgorithm.html#getGenerationsEvolved()">getGenerationsEvolved</a></strong>()</code>
<div class="block">Returns the number of generations evolved to reach <a href="../../../../../org/apache/commons/math3/genetics/StoppingCondition.html" title="interface in org.apache.commons.math3.genetics"><code>StoppingCondition</code></a> in the last run.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/genetics/MutationPolicy.html" title="interface in org.apache.commons.math3.genetics">MutationPolicy</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/genetics/GeneticAlgorithm.html#getMutationPolicy()">getMutationPolicy</a></strong>()</code>
<div class="block">Returns the mutation policy.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/genetics/GeneticAlgorithm.html#getMutationRate()">getMutationRate</a></strong>()</code>
<div class="block">Returns the mutation rate.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/commons/math3/random/RandomGenerator.html" title="interface in org.apache.commons.math3.random">RandomGenerator</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/genetics/GeneticAlgorithm.html#getRandomGenerator()">getRandomGenerator</a></strong>()</code>
<div class="block">Returns the (static) random generator.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/genetics/SelectionPolicy.html" title="interface in org.apache.commons.math3.genetics">SelectionPolicy</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/genetics/GeneticAlgorithm.html#getSelectionPolicy()">getSelectionPolicy</a></strong>()</code>
<div class="block">Returns the selection policy.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/genetics/Population.html" title="interface in org.apache.commons.math3.genetics">Population</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/genetics/GeneticAlgorithm.html#nextGeneration(org.apache.commons.math3.genetics.Population)">nextGeneration</a></strong>(<a href="../../../../../org/apache/commons/math3/genetics/Population.html" title="interface in org.apache.commons.math3.genetics">Population</a>&nbsp;current)</code>
<div class="block">Evolve the given population into the next generation.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/genetics/GeneticAlgorithm.html#setRandomGenerator(org.apache.commons.math3.random.RandomGenerator)">setRandomGenerator</a></strong>(<a href="../../../../../org/apache/commons/math3/random/RandomGenerator.html" title="interface in org.apache.commons.math3.random">RandomGenerator</a>&nbsp;random)</code>
<div class="block">Set the (static) random generator.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="GeneticAlgorithm(org.apache.commons.math3.genetics.CrossoverPolicy, double, org.apache.commons.math3.genetics.MutationPolicy, double, org.apache.commons.math3.genetics.SelectionPolicy)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>GeneticAlgorithm</h4>
<pre>public&nbsp;GeneticAlgorithm(<a href="../../../../../org/apache/commons/math3/genetics/CrossoverPolicy.html" title="interface in org.apache.commons.math3.genetics">CrossoverPolicy</a>&nbsp;crossoverPolicy,
                double&nbsp;crossoverRate,
                <a href="../../../../../org/apache/commons/math3/genetics/MutationPolicy.html" title="interface in org.apache.commons.math3.genetics">MutationPolicy</a>&nbsp;mutationPolicy,
                double&nbsp;mutationRate,
                <a href="../../../../../org/apache/commons/math3/genetics/SelectionPolicy.html" title="interface in org.apache.commons.math3.genetics">SelectionPolicy</a>&nbsp;selectionPolicy)
                 throws <a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></pre>
<div class="block">Create a new genetic algorithm.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>crossoverPolicy</code> - The <a href="../../../../../org/apache/commons/math3/genetics/CrossoverPolicy.html" title="interface in org.apache.commons.math3.genetics"><code>CrossoverPolicy</code></a></dd><dd><code>crossoverRate</code> - The crossover rate as a percentage (0-1 inclusive)</dd><dd><code>mutationPolicy</code> - The <a href="../../../../../org/apache/commons/math3/genetics/MutationPolicy.html" title="interface in org.apache.commons.math3.genetics"><code>MutationPolicy</code></a></dd><dd><code>mutationRate</code> - The mutation rate as a percentage (0-1 inclusive)</dd><dd><code>selectionPolicy</code> - The <a href="../../../../../org/apache/commons/math3/genetics/SelectionPolicy.html" title="interface in org.apache.commons.math3.genetics"><code>SelectionPolicy</code></a></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></code> - if the crossover or mutation rate is outside the [0, 1] range</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="setRandomGenerator(org.apache.commons.math3.random.RandomGenerator)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRandomGenerator</h4>
<pre>public static&nbsp;void&nbsp;setRandomGenerator(<a href="../../../../../org/apache/commons/math3/random/RandomGenerator.html" title="interface in org.apache.commons.math3.random">RandomGenerator</a>&nbsp;random)</pre>
<div class="block">Set the (static) random generator.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>random</code> - random generator</dd></dl>
</li>
</ul>
<a name="getRandomGenerator()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRandomGenerator</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/commons/math3/random/RandomGenerator.html" title="interface in org.apache.commons.math3.random">RandomGenerator</a>&nbsp;getRandomGenerator()</pre>
<div class="block">Returns the (static) random generator.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the static random generator shared by GA implementation classes</dd></dl>
</li>
</ul>
<a name="evolve(org.apache.commons.math3.genetics.Population, org.apache.commons.math3.genetics.StoppingCondition)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>evolve</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/math3/genetics/Population.html" title="interface in org.apache.commons.math3.genetics">Population</a>&nbsp;evolve(<a href="../../../../../org/apache/commons/math3/genetics/Population.html" title="interface in org.apache.commons.math3.genetics">Population</a>&nbsp;initial,
                <a href="../../../../../org/apache/commons/math3/genetics/StoppingCondition.html" title="interface in org.apache.commons.math3.genetics">StoppingCondition</a>&nbsp;condition)</pre>
<div class="block">Evolve the given population. Evolution stops when the stopping condition
 is satisfied. Updates the <a href="../../../../../org/apache/commons/math3/genetics/GeneticAlgorithm.html#getGenerationsEvolved()"><code>generationsEvolved</code></a>
 property with the number of generations evolved before the StoppingCondition
 is satisfied.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>initial</code> - the initial, seed population.</dd><dd><code>condition</code> - the stopping condition used to stop evolution.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the population that satisfies the stopping condition.</dd></dl>
</li>
</ul>
<a name="nextGeneration(org.apache.commons.math3.genetics.Population)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nextGeneration</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/math3/genetics/Population.html" title="interface in org.apache.commons.math3.genetics">Population</a>&nbsp;nextGeneration(<a href="../../../../../org/apache/commons/math3/genetics/Population.html" title="interface in org.apache.commons.math3.genetics">Population</a>&nbsp;current)</pre>
<div class="block">Evolve the given population into the next generation.
 <p>
 <ol>
  <li>Get nextGeneration population to fill from <code>current</code>
      generation, using its nextGeneration method</li>
  <li>Loop until new generation is filled:</li>
  <ul><li>Apply configured SelectionPolicy to select a pair of parents
          from <code>current</code></li>
      <li>With probability = <a href="../../../../../org/apache/commons/math3/genetics/GeneticAlgorithm.html#getCrossoverRate()"><code>getCrossoverRate()</code></a>, apply
          configured <a href="../../../../../org/apache/commons/math3/genetics/CrossoverPolicy.html" title="interface in org.apache.commons.math3.genetics"><code>CrossoverPolicy</code></a> to parents</li>
      <li>With probability = <a href="../../../../../org/apache/commons/math3/genetics/GeneticAlgorithm.html#getMutationRate()"><code>getMutationRate()</code></a>, apply
          configured <a href="../../../../../org/apache/commons/math3/genetics/MutationPolicy.html" title="interface in org.apache.commons.math3.genetics"><code>MutationPolicy</code></a> to each of the offspring</li>
      <li>Add offspring individually to nextGeneration,
          space permitting</li>
  </ul>
  <li>Return nextGeneration</li>
 </ol></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>current</code> - the current population.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the population for the next generation.</dd></dl>
</li>
</ul>
<a name="getCrossoverPolicy()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCrossoverPolicy</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/math3/genetics/CrossoverPolicy.html" title="interface in org.apache.commons.math3.genetics">CrossoverPolicy</a>&nbsp;getCrossoverPolicy()</pre>
<div class="block">Returns the crossover policy.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>crossover policy</dd></dl>
</li>
</ul>
<a name="getCrossoverRate()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCrossoverRate</h4>
<pre>public&nbsp;double&nbsp;getCrossoverRate()</pre>
<div class="block">Returns the crossover rate.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>crossover rate</dd></dl>
</li>
</ul>
<a name="getMutationPolicy()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMutationPolicy</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/math3/genetics/MutationPolicy.html" title="interface in org.apache.commons.math3.genetics">MutationPolicy</a>&nbsp;getMutationPolicy()</pre>
<div class="block">Returns the mutation policy.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>mutation policy</dd></dl>
</li>
</ul>
<a name="getMutationRate()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMutationRate</h4>
<pre>public&nbsp;double&nbsp;getMutationRate()</pre>
<div class="block">Returns the mutation rate.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>mutation rate</dd></dl>
</li>
</ul>
<a name="getSelectionPolicy()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSelectionPolicy</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/math3/genetics/SelectionPolicy.html" title="interface in org.apache.commons.math3.genetics">SelectionPolicy</a>&nbsp;getSelectionPolicy()</pre>
<div class="block">Returns the selection policy.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>selection policy</dd></dl>
</li>
</ul>
<a name="getGenerationsEvolved()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getGenerationsEvolved</h4>
<pre>public&nbsp;int&nbsp;getGenerationsEvolved()</pre>
<div class="block">Returns the number of generations evolved to reach <a href="../../../../../org/apache/commons/math3/genetics/StoppingCondition.html" title="interface in org.apache.commons.math3.genetics"><code>StoppingCondition</code></a> in the last run.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>number of generations evolved</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.1</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/GeneticAlgorithm.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/commons/math3/genetics/FixedGenerationCount.html" title="class in org.apache.commons.math3.genetics"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/commons/math3/genetics/InvalidRepresentationException.html" title="class in org.apache.commons.math3.genetics"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/commons/math3/genetics/GeneticAlgorithm.html" target="_top">Frames</a></li>
<li><a href="GeneticAlgorithm.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2003&#x2013;2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>
